package cn.itsource.ymcc.feignclient;

import cn.itsource.ymcc.domain.Login;
import cn.itsource.ymcc.feignclient.factory.LoginFeignclientFallbackFactory;
import cn.itsource.ymcc.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(name = "service-uaa",fallbackFactory = LoginFeignclientFallbackFactory.class)
public interface LoginFeignclient {

    @RequestMapping(value="/login/save",method= RequestMethod.POST)
    public JSONResult saveOrUpdate(@RequestBody Login login);
}
